const initState = {
    list:[],
    isFirst: true,
    isLoading: false
}
export default function listReducer(preState = initState,action){
    const {type,data} = action
    switch(type){
        case 'getData':
            return {...preState,...data}
        default:
            return preState
    }
}